package com.xu.mybatis.model;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页条件基类
 *
 * @Author: 许乾伟
 * @Date: 2024/3/21 9:52
 */
@Data
public class QueryPageReq implements Serializable {
    /**
     * 页码
     */
    @NotNull(message = "页码不能为空")
    private Integer pageNum = 1;
    /**
     * 每页条数
     */
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize = 10;
}
